dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fab912b
)
Fix Special:NewSection showNoRedirectPage form handling
author
DannyS712
<DannyS712.enwiki@gmail.com>
Wed, 7 Aug 2019 21:18:04 +0000
(21:18 +0000)
committer
Mobrovac
<mobrovac@wikimedia.org>
Wed, 7 Aug 2019 21:22:51 +0000
(21:22 +0000)
Bug: T207577
Change-Id: I3e476dffb4cb32b47f0f2f55e0f77ed74e85f302
includes/specials/SpecialNewSection.php
patch
|
blob
|
history
diff --git
a/includes/specials/SpecialNewSection.php
b/includes/specials/SpecialNewSection.php
index
b503141
..
62379f5
100644
(file)
--- a/
includes/specials/SpecialNewSection.php
+++ b/
includes/specials/SpecialNewSection.php
@@
-60,7
+60,8
@@
class SpecialNewSection extends RedirectSpecialPage {
}
public function onFormSubmit( $formData ) {
- $page = $formData['page'];
+ $title = $formData['page'];
+ $page = Title::newFromText( $title );
$query = [ 'action' => 'edit', 'section' => 'new' ];
$url = $page->getFullUrlForRedirect( $query );
$this->getOutput()->redirect( $url );